﻿
#ifndef MESSAGES_H
#define MESSAGES_H

//{{{ file documentation -------------------------------------------------------

/*!
 * @file     messages.h
 * @brief    dicodor messages window class declaration
 */

//}}} --------------------------------------------------------------------------
//{{{ includes / predeclarations -----------------------------------------------

// @(#) $Id: messages.h 53 2012-05-23 13:56:41Z nsouchon-dico@altern.org $

#include <QtGui/QDialog>

//}}} --------------------------------------------------------------------------
//{{{ namespace Ui -------------------------------------------------------------

namespace           Ui
{
    class           Messages;
}

//}}} --------------------------------------------------------------------------
//{{{ structures ---------------------------------------------------------------
//}}} --------------------------------------------------------------------------
//{{{ .Messages ----------------------------------------------------------------

class Messages :    public QDialog
{
    Q_OBJECT;

private:
    void            initIcons ();

public:
    explicit        Messages (QWidget * parent = 0);
    virtual         ~Messages ();
    void            setMessageList (const QStringList & list);
    QStringList     messageList ();

protected:
    void            changeEvent (QEvent * e);

private slots:
    void            on_clear_clicked ();
    void            on_close_clicked ();

private:
    Ui::Messages  * ui;
};

//}}} --------------------------------------------------------------------------

#endif // MESSAGES_H

